package org.jeecg.modules.rental.enums;

import org.jeecg.common.annotation.EnumDict;
import org.jeecg.common.enums.IEnumDict;
import org.jeecg.common.exception.JeecgBootException;

@EnumDict(code ="deposit_audit_status_dict", name = "退押金押金审核状态枚举")
public enum DepositAuditStatusEnums implements IEnumDict<DepositAuditStatusEnums> {

    PENDING("1", "待审核"),

    APPROVED("2", "通过"),

    REJECT("3", "驳回");
    private String value;

    private String label;

    DepositAuditStatusEnums(String value, String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public String getKey() {
        return value;
    }

    @Override
    public String getRemark() {
        return null;
    }

    public static DepositAuditStatusEnums getEnumByValue(String value){
        for(DepositAuditStatusEnums item: values()){
            if(value.equals(item.value)){
                return item;
            }
        }
        throw new JeecgBootException("没找到对应字典");
    }

}
